package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Menu;

import java.util.List;
import java.util.Map;

/**
 * @author Lz
 * @date 2020-03-06 20:51
 * @week 星期五
 */
public interface MenuService {
    //分页查询菜单数据
    public PageResult findPage(QueryPageBean queryPageBean);

    public List<Map<String, Object>> findAllParentMenu();

    //添加菜单
    public Result add(Menu menu);

    public Menu findById(Integer id);

    public Result edit(Menu menu);

    public Result delete(Integer id);

    public List<Menu> getMenus(String username);
}
